home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Mise à jour / MailLink for PowerTalk / Mail*Link® PT⁄INET / Mail*Link Extras / AppleScript Support / Connect Now⁄Inet.script < prev    next >
Text File  |  1994-09-09  |  1KB  |  25 lines

  1. (*
  2. ** You may execute this script from the "Script Editor"or save it
  3. ** as a  double-clickable application. To save as a application, pick 
  4. ** "Save as Run-Only..." from the "File" menu, set the "Kind"
  5. ** pop-up to "Application" and set the options (we recommend
  6. ** "Stay Open" be unchecked and "Never Show Startup Screen"
  7. ** be checked). This application may then be executed at any time 
  8. **causing the gateway to send/receive mail to/from your internet
  9. ** host.
  10. **
  11. ** You may also save this script as a "compiled script" which can
  12. ** then be directly executed by some AppleScript aware applications.
  13. *)
  14. tell application "Finder"
  15.     -- verify that we are not running version 1.0 of AppleScript
  16.     -- system crashes will occur under this version!
  17.     if version of file "AppleScript¬" of folder "Extensions" of folder "System Folder" of startup disk is "1.0" then
  18.         display dialog "You must use AppleScript 1.1 or later." buttons {"Cancel"} default button "Cancel" with icon stop
  19.     else
  20.         Prompt For Identity -- If the keychain is locked, prompt to unlock it
  21.         PMSAM connect now "PT/Internet" -- cause the gateway to be executed
  22.     end if
  23. end tell
  24.  
  25.